package com.example.service.impl;

import com.example.entity.Dept;
import com.example.mapper.DeptMapper;
import com.example.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: 21050134
 * @date: 2023/10/13 14:10
 * @description:
 */
@Service
public class DeptServiceImpl implements DeptService {

	@Autowired
	private DeptMapper deptMapper;

	public Dept get(Integer deptNo) {
		return deptMapper.selectByPrimaryKey(deptNo);
	}
	@Override
	public List<Dept> selectAll() {
		return deptMapper.GetAll();
	}

}
